package com.cangheng.app.testapp1.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cangheng.app.testapp1.dao.BaseDao;
import com.cangheng.app.testapp1.service.BaseService;

@Service
public class BaseServiceImpl implements BaseService{

	private static final Logger logger = LoggerFactory.getLogger(BaseServiceImpl.class);
	@Autowired	
	private BaseDao baseDao;
	
	@Override
	public boolean service() {
		logger.info(" BaseServiceImpl.service()");
		return baseDao.save();
	}

	public BaseDao getBaseDao() {
		return baseDao;
	}
	
	public void setBaseDao(BaseDao baseDao) {
		this.baseDao = baseDao;
	}
}
